package syntaxTree;

import java.util.LinkedList;
import util.*;

public class ClassDeclNoExtends extends ClassDecl
{
  Id id;
	LinkedList<Tuple<Type, Id>> var;
	LinkedList<Method> met;
  
	public ClassDeclNoExtends (Id id, LinkedList<Tuple<Type, Id>> var, LinkedList<Method> met)
	{
		this.id = id;
		this.var = var;
		this.met = met;
	}
	
	public String toString ()
  {
  String result = "";
    result += "class ";
    result += id.toString();
    result += " {\n";
    result += ";\n";
    for (Method m:met)
      result += m.toString();
    
    result += "}";
    return result;
  }
}
